From 4d9b8db9fc68d7b4ed8839eb2c6576d895f0a183 Mon Sep 17 00:00:00 2001 From: "apeace@paploo.uk.xensource.com" Date: Thu, 6 Apr 2006 14:58:55 +0100 Subject: [PATCH] Fix the example xend init.d script so it correctly detects when it is running in a guest. Signed-off by: Andrew Peace --- tools/examples/init.d/xend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/examples/init.d/xend b/tools/examples/init.d/xend index c789d5d28d..8ad407637c 100755 --- a/tools/examples/init.d/xend +++ b/tools/examples/init.d/xend @@ -7,7 +7,7 @@ # chkconfig: 2345 98 01 # description: Starts and stops the Xen control daemon. -if ! [ -e /proc/xen/privcmd ]; then +if ! grep -q "control_d" /proc/xen/capabilities ; then exit 0 fi -- 2.30.2